// pages/goods/classify/comps/classifyList/classifyList.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
      classifyList: Array
    },

    /**
     * 组件的初始数据
     */
    data: {
        // classifyList: [{
        //         name: '百领护肤',
        //         img: 'https://yidianyuan.bailingyoupin.com/static/images/wx_sm/goods/classify-1.png',
        //         link: '/pages/goods/goodsList/goodsList?classId=81'
        //     },
        //     {
        //         name: '百领防晒',
        //         img: 'https://yidianyuan.bailingyoupin.com/static/images/wx_sm/goods/classify-2.png',
        //         link: '/pages/goods/goodsList/goodsList?classId=77'
        //     },
        //     {
        //         name: '百领洗护',
        //         img: 'https://yidianyuan.bailingyoupin.com/static/images/wx_sm/goods/classify-3.png',
        //         link: '/pages/goods/goodsList/goodsList?classId=93'
        //     },
        //     {
        //         name: '百领口红',
        //         img: 'https://yidianyuan.bailingyoupin.com/static/images/wx_sm/goods/classify-4.png',
        //         link: '/pages/goods/goodsList/goodsList?classId=90'
        //     },
        //     {
        //         name: '百领香氛',
        //         img: 'https://yidianyuan.bailingyoupin.com/static/images/wx_sm/goods/classify-5.png',
        //         link: '/pages/goods/goodsList/goodsList?classId=80'
        //     },
        //     {
        //         name: '百领面膜',
        //         img: 'https://yidianyuan.bailingyoupin.com/static/images/wx_sm/goods/classify-6.png',
        //         link: '/pages/goods/goodsList/goodsList?classId=97'
        //     }
        //     // {
        //     //     name: '百领喷雾',
        //     //     img: 'https://yidianyuan.bailingyoupin.com/static/images/wx_sm/goods/classify-7.png',
        //     //     link: '/pages/goods/goodsList/goodsList?classId=79'
        //     // },
        //     // {
        //     //     name: '百领洁面',
        //     //     img: 'https://yidianyuan.bailingyoupin.com/static/images/wx_sm/goods/classify-8.png',
        //     //     link: '/pages/goods/goodsList/goodsList?classId=82'
        //     // }
        // ]
    },

    /**
     * 组件的方法列表
     */
    methods: {
        goGoodsList: function(e) {
            wx.navigateTo({
              url: "/pages/goods/goodsList/goodsList?classId=" + e.currentTarget.dataset.link,
            })
        }
    }
})